package com.bawei.mall.user.remote.api;


import com.bawei.common.core.constant.ServiceNameConstants;
import com.bawei.common.core.domain.R;
import com.bawei.mall.user.remote.factory.RemoteUserFallbackFactory;
import com.bawei.system.domain.model.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author：韩丹阳
 * @Package：com.bawei.mall.user.remote.api
 * @Project：mall_cloud
 * @name：IRemoteUserService
 * @Date：2024/6/28 下午 02:59
 */
@FeignClient(contextId = "iremoteUserService", value = ServiceNameConstants.USER_SERVICE, fallbackFactory = RemoteUserFallbackFactory.class)
public interface IRemoteUserService {
    @GetMapping("/userLogin/userLogin")
    public R<User> userLogin(@RequestParam("username") String username) ;
}
